package cn.rdq.iknessplatform.controller;

import cn.rdq.common.CommonResult;
import cn.rdq.common.constant.SysCurrentInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/status")
public class StatusController {

    @RequestMapping("/online")
    public CommonResult online() {
        Map<String, Object> map = new HashMap<>(16);
        map.put("online", SysCurrentInfo.getOnline());
        return CommonResult.successObj(map);
    }

}
